<?php
/*
 * Created on Feb 11, 2005
 *
 */

require_once ($DOCUMENT_ROOT . '/includes/functions.php');

session_start ();

db_connect ();

if (is_admin ())
{
		do_header ('Add FAQs', '');
		
		if ($submit)
		{
			echo "form submitted";
		}
		else
		{
?>
	<form method="post" action="<?php echo $PHP_SELF; ?>">
		<p>category:</p>        
          <p><input type="radio" name="catselect" value="new">
		  <input type="text" name="textin"></p>
          <p><input type="radio" name="catselect" value="old">
	<select name="menuin">
	  <option>select</option>
          </select>
	  </p>
		<p>enter question:</p>
		<p><textarea rows="5" name="question" cols="80"></textarea></p>
		<p>enter answer:</p>
		<p><textarea rows="10" name="answer" cols="80"></textarea></p>
		<p><input type="submit" value="Submit" name="submit"></p> 
	</form>
<?php
		}
}
else
{
	do_header ('Failure');
	echo "<p>Failure: You are not an administrator</p>";
}
do_footer ();
?>
